from django.shortcuts import render

# Create your views here.
from rest_framework.generics import ListAPIView

from .models import Script
from .serializers import ScriptModelSerializer
# from luffyapi.settings import constants [:constants.BANNER_LENGTH]
class ScriptListAPIView(ListAPIView):
    # objects = models.Manager()
    queryset = Script.objects.filter(is_deleted = False)
    # .order_by('-orders','-id')
    serializer_class = ScriptModelSerializer